Piwik\Common D

Total Complexity 178
Dependencies 10
Dependents 433
Total lines 1,227
Lines of code 562
Logical lines of code 314
Comment lines 475
Methods 53
Properties 1

Methods 53

Method Rating Maintainability Complexity Lines of code
getRequestVar()
C
37 24 70
getRandomInt()
A
52 8 27
extractLanguageAndRegionCodeFromBrowserLanguage()
A
52 8 25
sanitizeInputValues()
A
53 8 22
extractCountryCodeFromBrowserLanguage()
A
55 8 19
getLastJsonError()
S
58 7 17
sendResponseCode()
S
49 6 30
isPhpCliMode()
S
61 6 12
getBrowserLanguage()
S
51 5 26
safe_unserialize()
S
58 4 15
hashEquals()
S
59 4 14
hash()
S
60 4 13
unprefixTable()
S
60 4 13
printDebug()
S
62 4 12
getCountry()
S
65 4 8
getCampaignParameters()
S
59 3 15
extractLanguageCodeFromBrowserLanguage()
S
60 3 13
getProcessId()
S
63 3 11
sanitizeString()
S
62 3 11
unsanitizeInputValues()
S
63 3 11
sendHeader()
S
72 3 5
convertVisitorIdToBin()
S
66 3 8
getContinent()
S
66 3 8
destroy()
S
68 3 7
forceDotAsSeparatorForDecimalPoint()
S
70 3 6
getSqlStringFieldsArray()
S
63 3 10
mb_substr()
S
64 3 9
stripHeader()
S
73 3 5
getCurrentLocationProviderId()
S
70 2 6
isXmlHttpRequest()
S
74 2 4
stringEndsWith()
S
68 2 7
checkValidLanguagesIsSet()
S
67 2 8
mb_strtoupper()
S
71 2 6
prefixTables()
S
68 2 7
getRandomString()
S
64 2 9
isRunningConsoleCommand()
S
67 2 7
mb_strlen()
S
70 2 6
mb_strtolower()
S
71 2 6
hasJsonErrorOccurred()
S
79 1 3
isGoalPluginEnabled()
S
79 1 3
isActionsPluginEnabled()
S
79 1 3
isPhpCgiType()
S
74 1 4
unsanitizeInputValue()
S
79 1 3
sanitizeInputValue()
S
73 1 5
convertUserIdToVisitorIdBin()
S
75 1 4
sanitizeLineBreaks()
S
78 1 3
sanitizeNullBytes()
S
78 1 3
generateUniqId()
S
79 1 3
prefixTable()
S
75 1 4
hex2bin()
S
79 1 3
getProviderNames()
S
72 1 5
getClassLineage()
S
74 1 4
hashStringToInt()
S
73 1 4